{% load static %}

<form method="post" action="/polls/file_upload" enctype="multipart/form-data">
    {% csrf_token %}
    <label>选择上传文件：</label>
    <input type="file" name="file" />
    <div><input type="submit" value="提交" style="margin-top: 10px" /></div>
</form>